﻿using System.Runtime.Serialization;

namespace RRSimulator.BlobManager.Service.Requests
{
    [DataContract]
    public class CommitBlocksRequest : BlobManagerRequestBase
    {
        private bool _isDisposed;

        [DataMember]
        public string[] BlockIds { get; set; }

        [DataMember]
        public string ContentType { get; set; }

        [DataMember]
        public string HashValue { get; set; }

        protected override void Dispose(bool isDisposing)
        {
            if (!_isDisposed)
            {
                if (isDisposing)
                {
                    BlockIds = null;
                    ContentType = null;
                    HashValue = null;
                }

                _isDisposed = true;
            }

            base.Dispose(isDisposing);
        }
    }    
}
